<%@page import="java.util.*,hyper.market.beans.*,java.io.*"%>
<%@page contentType="text/html"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<jsp:useBean id="initiallist" class="java.util.ArrayList" scope="session"/>

<html>
    <head>
        <link rel="stylesheet" href="style/desk.css" type="text/css" />
        <link rel="stylesheet" href="style/960.css" type="text/css" />
        <link rel="stylesheet" href="style/960_12_col.css" type="text/css" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <div class="pagewidth alignleft group toppadstock topmarginstock">

            <%  String name = "";
                        out.println("<div id=\"reportlist\" name=\"reportlist\">");
                        out.println("<div class =\"pagewidth leftmargin heightstock\">");
                        out.println("<ul class=\"homenavlist group botmargin heightstock\">");
                        out.println("<li><label class=\"homenavlistli reportlabel\">Cost Report</label></li>");
                        out.println("</ul></div>");
                        out.println("<div id= \"baglistdiv\" style = \"margin-top:50px\">");
                        for (int i = 0; i < initiallist.size(); i++) {
                            out.println("<li class='listitem baglist'>");
                            out.println("<label class=\"imgframe listbagimglink\" p=\"bagslist\" t=\"bagimage\">");
                            out.println("<img width=\"150\" height=\"93\" src=\"./product/" + ((StockBean) initiallist.get(i)).getStockImage() + "\" alt=\"" + ((StockBean) initiallist.get(i)).getStockImage() + "\" class=\"listbagimg\"></label>");
                            out.println("<div class=\"listbagtext group\">");
                            out.println("<a href=\"/#\" onclick='return false;' class=\"listbagitemtitle\" p=\"bagslist\" t=\"bagname\">" + ((StockBean) initiallist.get(i)).getStockname() + "</a>");
                            out.println("<p style=\"min-height: 63px;\" class=\"commenttext\">Quantity : " + ((StockBean) initiallist.get(i)).getQuantity() + " &nbsp  Status : " + ((StockBean) initiallist.get(i)).getStatus() + "<br>Cost Price : $" + ((StockBean) initiallist.get(i)).getCostprice() + " &nbsp <font color='red'>Selling Price : $" + ((StockBean) initiallist.get(i)).getSellingprice() + "</font><br>Threshold : " + ((StockBean) initiallist.get(i)).getThreshold() + " &nbsp Discount %: " + ((StockBean) initiallist.get(i)).getDiscount() + " <br> Expiry Date : " + ((StockBean) initiallist.get(i)).getExpiryDate() + " <br></p>");
                            out.println("</div>");
                            out.println("</li>");
                        }

                        out.println("</div></div>");
            %>
        </div>
    </body>
</html>
